<!--创建一个loginApp模块，然后在创建一个loginController控制器-->

<div class="container" ng-app="loginApp" ng-controller="loginController">

    <div class="col-ms-6 col-md-offset-3">
        <div class="page-header">
            <h1 class="text-center">angularJS 增删改查项目</h1>
        </div>
      </div>
    <div id="message" class="well" ng-show="message">{{message}}</div>
    <!--登录的表单-->
    <form ng-submit="postForm()">
         <div class="form-group">
             <label>用户名</label>
             <input type="text" name="username" class="form-control"
              ng-model="formData.username" placeholder="用户名">
             <span class="help-block" ng-show="errorUsername">{{errorUsername}}</span>

         </div>
        <div class="form-group">
            <label for="">密码</label>
            <input type="password" name="password"
                   class="form-control" placeholder="密码"
                   ng-model="formData.password">
            <span class="help-block" ng-show="errorPassword">{{errorPassword}}</span>

        </div>
        <button type="submit" class="btn btn-success btn-lg btn-block">
            <span class="glyphicon glyphicon-flash"></span>
            提交
        </button>
    </form>
</div>